﻿@using Abp.Web.Mvc.Extensions
@using Akso.Authorization
@using Akso.Web.Navigation
@model Akso.Web.Areas.FinanceModule.Models.DataMaintains.DataMaintainsViewModel
@{
    ViewBag.CurrentPageName = PageNames.App.Business.DataMaintains;//定位菜单位置
}
@section Scripts
{
    @Html.IncludeScript("~/Areas/FinanceModule/Views/DataMaintains/_CreateOrEditBillAccountModal.js")
    @Html.IncludeScript("~/Areas/FinanceModule/Views/DataMaintains/IncomeExpendType.js")
    @Html.IncludeScript("~/Areas/FinanceModule/Views/DataMaintains/_CreateOrEditIncomeExpendTypeModal.js")
@Html.IncludeScript("~/Areas/FinanceModule/Views/DataMaintains/OtherCheck.js")
@Html.IncludeScript("~/Areas/FinanceModule/Views/DataMaintains/_CreateOrEditOtherCheckModal.js")
    @Html.IncludeScript("~/Areas/FinanceModule/Views/DataMaintains/Index.js")
}
<div class="row margin-bottom-5">
    <!--页面头区域，显示摘要信息-->
    <div class="col-xs-6">
        <div class="page-head">
            <div class="page-title">
                <h1>
                    <span>@L("Pages_FinanceModule_DataMaintains_Head")</span> <small>@L("Pages_FinanceModule_DataMaintains_HeadInfo")</small>
                </h1>
            </div>
        </div>
    </div>
    
</div>
<div class="tabbable-line">
    <ul class="nav nav-tabs ">
        <li class="active">
            <a href="#AccountSettingsTab" data-toggle="tab" aria-expanded="true">
                @L("Pages_FinanceModule_Tab_Accounts")
            </a>
        </li>
        <li class="">
            <a href="#IncomeExpendTypesTab" data-toggle="tab" aria-expanded="false" id="TabIncomeExpendTypes">
                @L("Pages_FinanceModule_Tab_IncomeExpendType")
            </a>
        </li>
        <li class="">
            <a href="#OtherChecksTab" data-toggle="tab" aria-expanded="false" id="TabOtherChecks">
                @L("Pages_FinanceModule_Tab_OtherCheck")
            </a>
        </li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="AccountSettingsTab">
            <div class="portlet light">
               
                <div class="portlet-title portlet-title-filter">
                    <!--查询区域-->
                    <div class="col-xs-6">
                        <div class="portlet-input">
                            <form>
                                <div class="input-group">
                                    <input id="DataTableFilter" class="form-control" placeholder="@L("SearchWithThreeDot")" type="text" value="@Model.FilterText" />
                                    <span class="input-group-btn">
                                        <button id="GetAccountsButton" class="btn default" type="submit"><i class="icon-magnifier"></i></button>
                                    </span>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-xs-6 text-right">

                        @if (IsGranted(AppPermissions.Pages_FinanceModule_DataMaintains_CreateAccount))
                        {
                            <button id="CreateNewButton" class="btn btn-primary blue"><i class="fa fa-plus"></i> @L("Pages_FinanceModule_DataMaintains_CreateAccount")</button>
                        }

                    </div>
                </div>

                <div class="portlet-body">
                    <!--显示数据的网格区域-->
                    <div id="AccountsTable"></div>
                </div>
            </div>
        </div>

        <div class="tab-pane" id="IncomeExpendTypesTab">
            <div class="portlet light">

                <div class="portlet-title portlet-title-filter">
                    <!--查询区域-->
                    <div class="col-xs-6">
                        <div class="portlet-input">
                            <form>
                                <div class="input-group">
                                    <input id="IETypesTableFilter" class="form-control" placeholder="@L("SearchWithThreeDot")" type="text" value="@Model.FilterText" />
                                    <span class="input-group-btn">
                                        <button id="GetIETypesButton" class="btn default" type="submit"><i class="icon-magnifier"></i></button>
                                    </span>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-xs-6 text-right">

                        @if (IsGranted(AppPermissions.Pages_FinanceModule_DataMaintains_CreateIEType))
                        {
                            <button id="CreateNewIETypeButton" class="btn btn-primary blue"><i class="fa fa-plus"></i> @L("Pages_FinanceModule_DataMaintains_CreateIEType")</button>
                        }

                    </div>
                </div>

                <div class="portlet-body">
                    <!--显示数据的网格区域-->
                    <div id="IETypesTable"></div>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="OtherChecksTab">
            <div class="portlet light">

                <div class="portlet-title portlet-title-filter">
                    <!--查询区域-->
                    <div class="col-xs-6">
                        <div class="portlet-input">
                            <form>
                                <div class="input-group">
                                    <input id="OtherCheckTableFilter" class="form-control" placeholder="@L("SearchWithThreeDot")" type="text" value="@Model.FilterText" />
                                    <span class="input-group-btn">
                                        <button id="GetOtherChecksButton" class="btn default" type="submit"><i class="icon-magnifier"></i></button>
                                    </span>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-xs-6 text-right">

                        @if (IsGranted(AppPermissions.Pages_FinanceModule_DataMaintains_CreateOtherCheck))
                        {
                            <button id="CreateNewOtherCheckButton" class="btn btn-primary blue"><i class="fa fa-plus"></i> @L("Pages_FinanceModule_DataMaintains_CreateOtherCheck")</button>
                        }

                    </div>
                </div>

                <div class="portlet-body">
                    <!--显示数据的网格区域-->
                    <div id="OtherChecksTable"></div>
                </div>
            </div>
        </div>
    </div>
</div>
